Repositions the cell by removing it and inserting it into another position in the
MedicalViewer control.
Syntax
Parameters
- cellIndex
- Index of the cell to be repositioned.
- targetCellIndex
- Index that represents the target position for the cell.
- swap
- true to swap the cells with the indexes cellIndex, targetCellIndex; false to insert the cell with index of cellIndex into targetCellIndex.
Example
Swap the first and the second cell.
Visual Basic | Copy Code |
---|
Public Sub MedicalViewerCellCollectionRepositionCellsExample()
Dim myForm As MedicalViewerForm = GetMedicalControl()
Dim medicalViewer As MedicalViewer = myForm.Viewer
medicalViewer.Cells.Reposition(0, 1, True)
myForm.ShowDialog()
End Sub |
C# | Copy Code |
---|
public void MedicalViewerCellCollectionRepositionCellsExample() { MedicalViewerForm myForm = GetMedicalControl(); MedicalViewer medicalViewer = myForm.Viewer; medicalViewer.Cells.Reposition(0, 1, true); myForm.ShowDialog(); } |
Requirements
Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
See Also